package in.muton.edushare.panels.upload.thin;

import in.muton.edushare.EduSharePage;

import org.apache.wicket.ajax.AjaxRequestTarget;
import org.apache.wicket.ajax.markup.html.AjaxLink;
import org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow;
import org.apache.wicket.model.IModel;

public class MultiUploadModalPage extends EduSharePage {
	
	public MultiUploadModalPage(IModel<String> tempIdModel, final ModalWindow mWindow){
		//add(JavascriptPackageResource.getHeaderContribution(ApplicationConstants.JSPATH_JQUERY));
		add(new MultiUpload("uploadPanel", tempIdModel));
		add(new AjaxLink<Void>("closeWindow"){

			private static final long serialVersionUID = 8577891303676600533L;

			@Override
			public void onClick(AjaxRequestTarget target) {
				mWindow.close(target);
			}
			
		});
	}
	
}
